<template>
    <div class="nodes">
        <template v-for="(item, idx) in nodes" :key="idx">
            <node :nodeConfig="item"></node>
        </template>
    </div>
</template>

<script lang="ts" setup>
let props = defineProps(['nodes']); //数组|对象写法都可以
import node from './nodes/node.vue'

</script>

<style scoped>
.nodes {
    display: flex;
    flex-direction: column;
    align-items: center;
}
</style>
